package com.steven.sample.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ProgressBar;

import com.steven.sample.R;

/**
 * description: TestLayout
 * author: Steven Xiao
 * date: 2017/3/8
 */
public class TestLayout extends LinearLayout {
    private View mContentView;
    private LayoutInflater mInflater;

    ProgressBar bar;

    public TestLayout(Context context) {
        super(context);
    }


    public TestLayout(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        mInflater = LayoutInflater.from(context);
        mContentView = mInflater.inflate(R.layout.item_test_content, null);
        addView(mContentView);
    }

    public TestLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
}
